<h4><%= t "cart.model_name" %></h4>
<% if !@cart.cart_items.empty? %>
    <ul>
      <% for item in @cart.cart_items %>
          <li id="cart_item_<%= item.product.id %>">
            <%= render :partial => "carts/item", :object => item %>
          </li>
      <% end %>
    </ul>
    <p id="cart_total"><strong>Total: <%= number_to_currency(@cart.total) %></strong></p>
    <% if current_page?(:controller => "carts", :action => "show") ||
            current_page?(:controller => "carts", :action => "checkout")%>
        <%= link_to "Proceed Shopping", root_path %>
    <% else %><p id="checkout">
        <%= link_to t("cart.check_out"), carts_show_path, :class=> :button %>
        </p>
    <% end %>
<% else %>
    <%= t "cart.empty" %>
<% end %>